package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;

/**
 * 合约事件表 
 */
@Data
@TableName(value = "tb_event", autoResultMap = true)
public class Event {
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }
    public String getEventHash() { return eventHash; }
    public void setEventHash(String eventHash) { this.eventHash = eventHash; }
    public String getEventSignature() { return eventSignature; }
    public void setEventSignature(String eventSignature) { this.eventSignature = eventSignature; }
    public String getTxHash() { return txHash; }
    public void setTxHash(String txHash) { this.txHash = txHash; }
    public Long getBlockNumber() { return blockNumber; }
    public void setBlockNumber(Long blockNumber) { this.blockNumber = blockNumber; }
    public String getContractAddress() { return contractAddress; }
    public void setContractAddress(String contractAddress) { this.contractAddress = contractAddress; }
    public String getEventData() { return eventData; }
    public void setEventData(String eventData) { this.eventData = eventData; }
    public Integer getLogIndex() { return logIndex; }
    public void setLogIndex(Integer logIndex) { this.logIndex = logIndex; }
    public java.util.Date getCreateTime() { return createTime; }
    public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; }

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 事件签名哈希 */
    private String eventHash;

    /** 事件签名 */
    private String eventSignature;

    /** 交易哈希 */
    private String txHash;

    /** 区块号 */
    private Long blockNumber;

    /** 合约地址 */
    private String contractAddress;

    /** 事件参数(JSON) */
    private String eventData;

    /** 日志索引 */
    private Integer logIndex;

    /** 创建时间 */
    private Date createTime;

}
